package com.ssyu.examination.assist.entity;

public class AssistMsgEntity {

	private int id;
	private String title;
	private String content;
	private String sendTime;
	private int senderId;
	private int classId;
	private String receiverUserIds;
	private int receiverClassIds;
	private String expireTime;
	private String style;
	private int state;

	private String sysRole__name;
	private String sysUser__name;
	private String sysUser__code;
	private String receive__name;
	private String class__name;

	public AssistMsgEntity() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getSenderId() {
		return senderId;
	}

	public void setSenderId(int senderId) {
		this.senderId = senderId;
	}

	public String getReceiverUserIds() {
		return receiverUserIds;
	}

	public void setReceiverUserIds(String receiverUserIds) {
		this.receiverUserIds = receiverUserIds;
	}

	public int getReceiverClassIds() {
		return receiverClassIds;
	}

	public void setReceiverClassIds(int receiverClassIds) {
		this.receiverClassIds = receiverClassIds;
	}

	public String getSendTime() {
		if (sendTime != null && sendTime.length() > 19) {
			return sendTime.substring(0, 19);
		}
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public String getExpireTime() {
		if (expireTime != null && expireTime.length() > 19) {
			return expireTime.substring(0, 19);
		}
		return expireTime;
	}

	public void setExpireTime(String expireTime) {
		this.expireTime = expireTime;
	}

	public String getState() {
		if (state == 1) {
			return "启用";
		} else if (state == 2) {
			return "待启用";
		} else if (state == 3) {
			return "已删除";
		}
		return "";
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getSysRole__name() {
		return sysRole__name;
	}

	public void setSysRole__name(String sysRole__name) {
		this.sysRole__name = sysRole__name;
	}

	public String getSysUser__name() {
		return sysUser__name;
	}

	public void setSysUser__name(String sysUser__name) {
		this.sysUser__name = sysUser__name;
	}

	public String getReceive__name() {
		return receive__name;
	}

	public void setReceive__name(String receive__name) {
		this.receive__name = receive__name;
	}

	public String getClass__name() {
		return class__name;
	}

	public void setClass__name(String class__name) {
		this.class__name = class__name;
	}

	public int getClassId() {
		return classId;
	}

	public void setClassId(int classId) {
		this.classId = classId;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public String getSysUser__code() {
		return sysUser__code;
	}

	public void setSysUser__code(String sysUser__code) {
		this.sysUser__code = sysUser__code;
	}
}
